package utils.nfc.xml
{
	public class Record
	{
		private var type:String;	
		private var valueArray:Array;
		
		public function Record(type:String, valueArray:Array){
			this.type = type;
			this.valueArray = valueArray;
		}
		
		public function toXML():XML{
			var record:XML = <record/>;
			record.@type = type;
			
			for (var i:int = 0; i < valueArray.length; i++) 
			{
				var curValue:Value = valueArray[i];
				record.appendChild(curValue.toXML());
			}
			
			return record;
		}
	}
}